package com.ocom.common.request.wx;


import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommonRoleRequest {
    @JsonProperty("companyId")
    @Min(1L)
    @NotNull(message = "companyId 不能为空")
    Long companyId;

    @JsonProperty("pId")
    @Min(1L)
    @NotNull(message = "pId 不能为空")
    Long pId;

    String appId;

    Integer role;

    Long adminId;
}
